package com.cskaoyan.service;

import com.cskaoyan.bean.vo.Dashboard;
import com.cskaoyan.mapper.DashboardMapper;
import com.cskaoyan.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @author Ramsey
 * @date 2023年05月29日 16:26
 */
public class DashboardServiceimpl implements DashboardService {

    @Override
    public Dashboard count() {
        SqlSession sqlSession = MyBatisUtil.getSqlSession();
        DashboardMapper mapper = sqlSession.getMapper(DashboardMapper.class);
        Dashboard dashboard = mapper.count();
        return dashboard;
    }
}
